package com.bytedance.common.plugin.faces;

import com.bytedance.common.plugin.baseface.BaseProxy;
import com.bytedance.common.plugin.mop.MopAgent;
import com.bytedance.common.plugin.mop.TargetType;
import com.bytedance.frameworks.baselib.network.http.cronet.ICronetDepend;

public class CronetProxy extends BaseProxy {
    private static volatile CronetProxy sInstance;

    private CronetProxy() {
    }

    public static CronetProxy inst() {
        if (CronetProxy.sInstance == null) {
            synchronized (CronetProxy.class) {
                if (CronetProxy.sInstance == null) {
                    CronetProxy.sInstance = new CronetProxy();
                }
            }
        }
        return CronetProxy.sInstance;
    }

    @MopAgent(packageName = "com.bytedance.common.plugin.cronet", targetType = TargetType.Plugin)
    public void setAdapter(ICronetDepend cronetDepend) {
        this.mopAction(new Class[]{ICronetDepend.class}, new Object[]{cronetDepend});
    }
}

